package ar.com.jendrix.common.util;

import java.util.ArrayList;
import java.util.List;

public final class MessageBuilder {

	private List<String> messages;

	/**
	 */
	public MessageBuilder() {
		messages = new ArrayList<String>();
	}

	/**
	 */
	public final List<String> getMessages() {
		return messages;
	}

	/**
	 */
	public final void addMessage(String message) {
		messages.add(message);
	}

	/**
	 */
	public final void addMessages(List<String> messages) {
		this.messages.addAll(messages);
	}

	/**
	 */
	public final boolean isEmpty() {
		return messages.isEmpty();
	}
}